package com.feihao.zhou.TCP.demoFileUpLoadUseThread;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.UUID;

public class ServerDemo001 {
    public static void main(String[] args) throws IOException {
        ServerSocket serverSocket = new ServerSocket(8808);

        while (true) {
            Socket accept = serverSocket.accept();

            //开启线程任务
            new Thread(new SocketThread(accept)).start();
        }
    }
}
